
import * as USER from '../constants/userTypes';
import * as URL from '../api/URL';

export function login(username='',pwd='') {
    return {
        type:USER.LOGIN,
        payload:{
            getPara:{
                username:username,
                pwd:pwd,
            },
            method:'GET',
            url:URL.LOGIN_URL,
        },
        loading:true
    }
}

export function getUserInfo() {
    return {
        type:USER.GET_USER_INFO,
        payload: {
            method:'POST',
            url:URL.GET_USER_INFO
        },
    }
}